//
//  NSObject+HUD.m
//  INMOTION
//
//  Created by 孙凯旋 on 14-9-24.
//  Copyright (c) 2014年 Inmotion. All rights reserved.
//

#import "NSObject+HUD.h"
#import "SVProgressHUD.h"

@implementation NSObject (HUD)

- (void)showSuccessHUDWithText:(NSString *)text {
    [SVProgressHUD showSuccessWithStatus:text];
}

- (void)showErrorHUDWithText:(NSString *)text {
    [SVProgressHUD showErrorWithStatus:text];
}

- (void)showProgressHUDWithText:(NSString *)text {
    [SVProgressHUD showWithStatus:text];
}

- (void)showProgressHUDWithText:(NSString *)text andProgress:(CGFloat)progress {
    [SVProgressHUD showProgress:progress status:text];
}

//
- (void)showSuccessHUDWithText:(NSString *)text fullScreen:(BOOL)fullScreen{
    [SVProgressHUD showSuccessWithStatus:text];
}

- (void)showErrorHUDWithText:(NSString *)text fullScreen:(BOOL)fullScreen{
    [SVProgressHUD showErrorWithStatus:text];
}

- (void)showProgressHUDWithText:(NSString *)text fullScreen:(BOOL)fullScreen{
    [SVProgressHUD showWithStatus:text];
}

- (void)showProgressHUDWithText:(NSString *)text andProgress:(CGFloat)progress fullScreen:(BOOL)fullScreen{
    [SVProgressHUD showProgress:progress status:text];
}

- (void)dismissHUD {
    [SVProgressHUD dismiss];
}

@end
